pp108 : getData() Method

getData() Method


This method retrieves the data saved to the clipboard.

Syntax

system.getClipboard.getData(sFormat);

Parameters

Parameter

Description

sFormat

Required. Denotes the format in which data must be retrieved from the clipboard. Text and XML data formats are predefined and are supported by default.


Return Value


Returns data of the type XML or string, depending on the format.

Remarks


The clipboard data is retrieved based on the format in which it is requested. If the requested format differs from the format in which the data is stored, the application converts the data accordingly.

Example

var copyXML = system.getClipboard.getData('XML');